from flask_restful import fields

user_fields={
    'uid': fields.Integer,
    'account': fields.String,
    'uname': fields.String,
    'profile_photo': fields.String,
    'gender':fields.Integer,
    'created_time': fields.DateTime
}


# 频道
channel_fields = {
    "cid": fields.Integer,
    "cname": fields.String,
    "sequence": fields.Integer,
}

# 关注
relation_fields = {
    "user_id" : fields.Integer,
    "uname" : fields.String,
    "created_time" : fields.DateTime,
}

# 跟帖
comment_fields = {
    "cmid": fields.Integer,
    "article_id": fields.Integer,
    "parent_id": fields.Integer,
}

# 收藏
collecction_fields = {
    "nid": fields.Integer,
    "cover": fields.String,
    'title': fields.String
}


news_fields = {
    'user_id':fields.Integer,
    'nid':fields.Integer,
    'title':fields.String,
    'cover':fields.String,
    'content':fields.String,
    'comment_count': fields.Integer,
    'good_count': fields.Integer,
    'ctime':fields.DateTime,
    'is_follow': fields.Boolean,
    'is_like':fields.Boolean,
}